Skip to content

Rework broadcasting machinery#355

Open
ptiede wants to merge 1 commit into
JuliaArrays:masterfrom
ptiede:ptiede-brdcastunknown
Open

Rework broadcasting machinery#355
ptiede wants to merge 1 commit into
JuliaArrays:masterfrom
ptiede:ptiede-brdcastunknown

Conversation

@ptiede

@ptiede ptiede commented May 27, 2026

Copy link
Copy Markdown
Contributor

This reworks the broadcasting machinery to fix the ambiguity and other issues that were originally pointed out in rafaqz/DimensionalData.jl#1195

I've taken a lot of inspiration from what DimensionalData did in their implementation, but with a couple of changes to handle cases where the underlying data isn't actually an array. One of the outcomes of this is that the dimensionality (ndims) of the broadcast hooks into Julia's own styles through BroadcastStyle, which means that sometimes, instead of inferring e.g., DefaultArrayStyle{N} for the ArrayStyle, it gives DefaultArrayStyle{Any}.

I'm not as familiar with the broadcasting internals as I should be, so I am not entirely sure about whether this changes anything downstream. I didn't notice any degradation, but this is potentially a breaking change, so it should be reviewed pretty closely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant